package silo.dungeonbuddy;

import java.awt.Color;
import java.awt.Graphics2D;

public class Label
{
	private int x;
	private int y;
	private int width;
	private int height;
	private boolean visible;
	private String text;
	private String name;
	
	public Label(String eName, String eText, int eX, int eY, int eWidth, int eHeight, boolean eVis)
	{
		x=eX;
		y=eY;
		width=eWidth;
		height=eHeight;
		visible=eVis;
		text=eText;
		name = eName;
	}//Constructor
	
	public void draw(Graphics2D g)
	{
		if(visible)
		{
			g.setColor(Color.black);
			g.drawString(text, x, y);
		}
	}//draw
	
	public void draw(Graphics2D g, int x, int y)
	{
		if(visible)
		{
			g.setColor(Color.black);
			g.drawString(text, x, y);
		}
	}//draw
	
	//GETTERS
	public int getX()
	{
		return x;
	}
	public int getY()
	{
		return y;
	}
	public int getWidth()
	{
		return width;
	}
	public int getHeight()
	{
		return height;
	}
	public boolean getVisible()
	{
		return visible;
	}
	public String getText()
	{
		return text;
	}
	public String getName()
	{
		return name;
	}
	
	//SETTERS
	public void setX(int eX)
	{
		x=eX;
	}
	public void setY(int eY)
	{
		y=eY;
	}
	public void setWidth(int eWidth)
	{
		width=eWidth;
	}
	public void setHeight(int eHeight)
	{
		height=eHeight;
	}
	public void setVisible(boolean eVis)
	{
		visible = eVis;
	}
	public void setText(String eText)
	{
		text=eText;
	}
	public void setName(String eName)
	{
		name = eName;
	}
}//class Label